using System;
using System.Collections;
using System.Collections.Generic;

namespace rudp
{
	public static class MessageListExtensions
	{
		public static bool IsLastMessage(this List<Message> messagePackets, Message messagePacket )
		{
			if( messagePackets[ messagePackets.Count - 1].Index == messagePacket.Index )
				return true;

			return false;
		}
	}
}

